//
//  Tool.m
//  UINavigationControllerDemo-Base
//
//  Created by 千锋 on 15/11/17.
//  Copyright (c) 2015年 LiChaoRan. All rights reserved.
//

#import "Tool.h"

@implementation Tool

+ (UIColor *)randomColorWithAlpha:(CGFloat)alpha
{
    CGFloat red=(arc4random()%256)/255.f;
    CGFloat green=(arc4random()%256)/255.f;
    CGFloat blue=(arc4random()%256)/255.f;
    UIColor * color=[UIColor colorWithRed:red green:green blue:blue alpha:alpha];
    return color;
}

@end
